const refreshToken = (options) => {
    const longToken = '1234567890'
    const optionsBody = options.body ? JSON.parse(options.body) : ''
    if (optionsBody.refreshToken === longToken) {
        return {
            status: 200,
            data: {
                shortToken: '1234567890_new',
                longToken: '1234567890_new',
                userName: 'admin',
                roleId: 999999,
                roleName: '最高管理员',
                phone: '13631047217',
                timestamp: new Date().getTime(),
                expires: 30
            },
            message: '刷新成功'
        }
    } else {
        return {
            status: 500,
            data: {},
            message: '请求刷新失败'
        }
    }
}
export default {
    'post|/api/testStudy/service/refreshToken': (options) => refreshToken(options)
}
